<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Article
 *
 * @property-read mixed $action
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Article newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Article newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Article query()
 * @mixin \Eloquent
 */
class Article extends Base
{

    protected $appends = ['action'];

    public function getActionAttribute()
    {
        return $this->editBut('admin.article.edit').'&nbsp' . $this->delBut('admin.article.destroy');
    }
}
